using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Shpm.App.Input.Dao;
using Shpm.App.Input.Bean;

public partial class App_Search_MemberInterestPopForm : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(!IsPostBack)
        {
            ViewState["Dict_No"] = Convert.ToString(Request.QueryString["Dict_No"]);
            labInterest.Text = Convert.ToString(Request.QueryString["INTEREST_NAME"]);
            BindGridView();
        }
       
    }
    private void BindGridView() 
    {
        string interestId = Convert.ToString(ViewState["Dict_No"]);
        HappyClubMemberDao dao = new HappyClubMemberDao();
        HappyClubMemberBean bean = new HappyClubMemberBean();
        bean.InterestDictId = interestId;
        IList list = dao.FindPersonInfoByInterestId(bean);
        this.GridView1.DataSource = list;
        this.GridView1.DataBind();
    }
    protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        GridView1.PageIndex = e.NewPageIndex;
        BindGridView();
    }
}
